package org.ws.task.schedule.dispatcher;

import org.ws.task.model.NodeMetadata;
import org.ws.task.model.TaskConfig;
import org.ws.task.model.TaskItem;

import java.util.List;

public class AllNodeDispatcher extends AbstractDispatcher {
    @Override
    protected List<NodeMetadata> getNode(TaskItem item, List<NodeMetadata> taskWorkerNodes) {
        return taskWorkerNodes;
    }

    @Override
    public TaskConfig.DispatchStrategy strategy() {
        return null;
    }
}
